package com.example.demo.mapper;

import com.example.demo.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface RoleMapper {
    List<Role> findByUserId(Long userId);
    Role findById(Long id);
    int insert(Role role);
    int update(Role role);
}